package com.tuanbiao.models.action;

import com.hzjq.data.callback.OnResultVoltageElectricProgressCallback;
import com.hzjq.lib.BlastKool;
import com.hzjq.lib.cap.bean.CommResult;

import timber.log.Timber;

/**
 * @author abiao
 * @since 2022/4/25 18:02
 */
public interface BlastAction {

    default void blast(OnResultVoltageElectricProgressCallback<CommResult> callback) {
        BlastKool.Companion.loader().blast().blast(callback);
    }

    default void cancelBlast() {
        Timber.i("cancelBlast");
        BlastKool.Companion.loader().blast().cancel();
    }

    default void exitBlast() {
        Timber.i("exitBlast");
        BlastKool.Companion.loader().blast().exit();
    }

}
